import { request } from "@/utils/service"
import { CompanyInfo, UpdateCompanyInfo } from "./types/info"

/** 获取企业信息 */
export function getCompanyInfoData() {
  return request<ApiResponseData<CompanyInfo>>({
    url: "company/getByUserId",
    method: "get"
  })
}

/** 更新企业信息 */
export function updateCompanyInfoData(data: UpdateCompanyInfo) {
  return request({
    url: "company/update",
    method: "post",
    data
  })
}
